package com.lhh.adminlte.entity;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/5/24 15:27
 * @Description:
 */
public enum MenuType {

    SHOW(1),

    HIDDEN(2),;

    public int value;

    MenuType(int value) {
        this.value = value;
    }

    public MenuType getMenuType(int value) {
        for (MenuType menuType : MenuType.values()) {
            if (menuType.value == value) {
                return menuType;
            }
        }
        return null;
    }
}
